package com.infore.common.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.infore.common.base.BaseModel;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * <p>
 *
 * </p>
 *
 * @author shaolay
 * @since 2022-12-12
 */
@TableName("stat_formula")
public class StatFormula extends BaseModel<StatFormula> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /**
     * 公式名称
     */
    @TableField("for_name")
    private String forName;
    /**
     * 公式编码
     */
    @TableField("for_code")
    private String forCode;
    /**
     * 描述
     */
    private String describe;
    /**
     * 是否内置（1：内置）
     */
    @TableField("built_in")
    private String builtIn;
    /**
     * 非内置时自定义公式
     */
    @TableField("custom_formulas")
    private String customFormulas;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getForName() {
        return forName;
    }

    public void setForName(String forName) {
        this.forName = forName;
    }

    public String getForCode() {
        return forCode;
    }

    public void setForCode(String forCode) {
        this.forCode = forCode;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getBuiltIn() {
        return builtIn;
    }

    public void setBuiltIn(String builtIn) {
        this.builtIn = builtIn;
    }

    public String getCustomFormulas() {
        return customFormulas;
    }

    public void setCustomFormulas(String customFormulas) {
        this.customFormulas = customFormulas;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatFormula{" + ", id=" + id + ", forName=" + forName + ", forCode=" + forCode + ", describe=" + describe + ", builtIn=" + builtIn + ", customFormulas=" + customFormulas + "}";
    }
}
